package me.chnxan.idm;

import org.springframework.stereotype.Repository;

import me.chnxan.core.EntityAtomManager;

/**
 * @author chnxan
 * 
 */
@Repository
public class UserManager extends EntityAtomManager<User, Long> {

	/**
	 * 
	 * 通过用户ID获得该用户的实例 默认为有效实例
	 * 
	 * @param uid
	 * @return
	 */
	public User getUser(Long uid) {
		return get(uid);
	}

	/**
	 * 
	 * 通过用户ID获得该用户的实例
	 * 
	 * @param uid
	 * @return
	 */
	public User getUser(Long uid, boolean isValid) {
		return get(uid, isValid);
	}

}
